NVCCFLAGS	:= -O3 -arch=sm_13        # -Xptxas -v
NVCC		:= /usr/local/cuda/bin/nvcc
LD_LIBRARY_PATH	:= /usr/local/cuda/lib64


all: ConfigFile.cpp simulation.cu main.cu Makefile
	$(NVCC) -o creatures ConfigFile.cpp simulation.cu main.cu $(NVCCFLAGS)


# replace the previous with this build if your development machine is < SM 1.3 and does not support double precision
#part2: mp4-part2.cu mp4-util.h black_scholes.h Makefile
#	$(NVCC) -o part2 mp4-part2.cu $(NVCCFLAGS)
	
clean:
	rm -rf creatures

run: all
	./creatures -ci config.txt


